// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class AutoCommand : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<AutoCommand, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string CommandName { get; set; }
        public string CommandType { get; set; }
        public string CreatePerson { get; set; }
        public DateTime? CreateTime { get; set; }
        public string UpdatePerson { get; set; }
        public DateTime? UpdateTime { get; set; }
        public bool? IsValid { get; set; }
        public int? Status { get; set; }
        public string Prjcodes { get; set; }
        public string AreaCodes { get; set; }
        public string CompanyCodes { get; set; }
        public string PlatformCodes { get; set; }
        public string VersonCodes { get; set; }
        public string DesignatedIDs { get; set; }
        public string ExceptedIDs { get; set; }
        public string ResultIDs { get; set; }
        public string ComSetting { get; set; }
        public string SpecialSetting { get; set; }
        public string Description { get; set; }
        public string CommandExeState { get; set; }
    
        public void Configure(EntityTypeBuilder<AutoCommand> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AreaCodes).HasMaxLength(1000);

                entityBuilder.Property(e => e.ComSetting).HasMaxLength(1000);

                entityBuilder.Property(e => e.CommandName).HasMaxLength(100);

                entityBuilder.Property(e => e.CommandType).HasMaxLength(100);

                entityBuilder.Property(e => e.CompanyCodes).HasMaxLength(1000);

                entityBuilder.Property(e => e.CreatePerson).HasMaxLength(50);

                entityBuilder.Property(e => e.CreateTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.Description).HasMaxLength(1000);

                entityBuilder.Property(e => e.IsValid).HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.PlatformCodes).HasMaxLength(1000);

                entityBuilder.Property(e => e.Prjcodes).HasMaxLength(1000);

                entityBuilder.Property(e => e.Status).HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.UpdatePerson).HasMaxLength(50);

                entityBuilder.Property(e => e.UpdateTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.VersonCodes).HasMaxLength(1000);
        }

    }
}

